package com.lc.pda.service.impl;

import com.lc.pda.entity.WmsInventory;
import com.lc.pda.dao.WmsInventoryMapper;
import com.lc.pda.service.WmsInventoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 库存信息 服务实现类
 * </p>
 *
 * @author zww
 * @since 2023-07-06
 */
@Service
public class WmsInventoryServiceImpl extends ServiceImpl<WmsInventoryMapper, WmsInventory> implements WmsInventoryService {

    @Override
    public boolean deleteAndToHis(String inventoryId) {
        if (baseMapper.insetToHis(inventoryId) > 0 && baseMapper.deleteById(inventoryId) > 0) {
            return true;
        }
        return false;
    }
}
